package model;

import java.util.Date;

/**
 * 
 * Description: 景点Spot的实体类。
 * 
 * @since  2009/2/15
 * @author ashen
 * 
 */
public class Spot extends Node{
	private Long mapId;
	private Integer xpos;
	private Integer ypos;
	private Spot sight;
	private Integer price;
	private String url;
	
	public Spot(Integer id, String name, String description,
			Date createDate, Integer ownerId, Long mapId, Integer xpos,
			Integer ypos, Spot sight, Integer price, String url) {
		super(id, name, description, createDate, ownerId);
		this.mapId = mapId;
		this.xpos = xpos;
		this.ypos = ypos;
		this.sight = sight;
		this.price = price;
		this.url = url;
	}
	
	public Spot() {
		super();
	}
	
	public Spot(Integer id, String name, String description,
			Date createDate, Integer ownerId) {
		super(id, name, description, createDate, ownerId);
	}
	
	public Spot(Node node) {
		setSpot(node);
	}
	
	public void setSpot(Node node){
		this.setCreateDate(node.getCreateDate());
		this.setDescription(node.getDescription());
		this.setId(node.getId());
		this.setName(node.getName());
		this.setOwnerId(node.getOwnerId());
	}

	public Long getMapId() {
		return mapId;
	}

	public void setMapId(Long mapId) {
		this.mapId = mapId;
	}

	public Integer getXpos() {
		return xpos;
	}

	public void setXpos(Integer xpos) {
		this.xpos = xpos;
	}

	public Integer getYpos() {
		return ypos;
	}

	public void setYpos(Integer ypos) {
		this.ypos = ypos;
	}

	public Spot getSight() {
		return sight;
	}

	public void setSight(Spot sight) {
		this.sight = sight;
	}

	public Integer getPrice() {
		return price;
	}

	public void setPrice(Integer price) {
		this.price = price;
	}

	public String getUrl() {
		return url;
	}

	public void setUrl(String url) {
		this.url = url;
	}
		
}
